;
(function () {
    var define;
    var defineRec = {};

    var require;

    define = function (id, factory) {
        defineRec[id] = {
            id: id,
            factory: factory
        }
    }

    var build = function (module) {
        return module.factory();
    }

    function people(name, age) {
        return function(){
            var p = new Object();
            p.name = name;
            p.age = age;
            console.log("create people");
            return p;
        }
    }

    require = function(id){
        defineRec[id].factory();
    }

    define('wzq', people('wzq',31));

    window.define = define;
    window.require = require;

})();
